package EnumDemo;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/7/16-07-16-13:54
 * @Description：enum实现接口
 */

interface food_test{
    void eat();
}
interface sport{
    void run();
}
public enum enum_implement01 implements food_test,sport{
    FOOD,SPORT;                         //分号分隔

    @Override
    public void eat() {
        System.out.println("eat..........");
    }

    @Override
    public void run() {
        System.out.println("run................");
    }
}
